package cn.gbase.jiangsu.data.transfer.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.View;

import cn.gbase.jiangsu.data.transfer.validation.annotation.Validations;

/**
 * 房间.
 * 
 */
@Table("unit_room")
@View("room_view")
public class UnitRoom extends BaseDto {

	/**
	 * ID.
	 */
	@Column
	@Id
	private int id;

	/**
	 * 房间号.
	 */
	@Column("room_no")
	@Validations(required = true, strLen = { 1, 4 }, errorMsg = "房间号应为1-4个字符。")
	private String roomNo;

	/**
	 * 房间编码.
	 */
	@Column("room_code")
	@Validations(required = false, strLen = { 0, 4 }, errorMsg = "房间编码应为1-4个字符。")
	private String roomCode;

	/**
	 * 所属单元.
	 */
	@Column("unit_id")
	@Validations(required = false, limit = { 0 }, errorMsg = "请选择所属单元。")
	private int unitId;

	/**
	 * 单元号.
	 */
	@Column("unit_no")
	@Readonly
	@Validations(required = true, strLen = { 1, 4 }, errorMsg = "单元号应为1-4个字符。")
	private String unitNo;

	/**
	 * 单元编码.
	 */
	@Column("unit_code")
	@Readonly
	private String unitCode;

	/**
	 * 楼ID.
	 */
	@Column("building_id")
	@Readonly
	private String buildingId;

	/**
	 * 楼号.
	 */
	@Column("building_no")
	@Readonly
	@Validations(required = true, strLen = { 1, 4 }, errorMsg = "楼号应为1-4个字符。")
	private String buildingNo;

	/**
	 * 楼编码.
	 */
	@Column("building_code")
	@Readonly
	private String buildingCode;

	/**
	 * 所属小区.
	 */
	@Column("community_id")
	@Readonly
	@Validations(required = true, limit = { 1 }, errorMsg = "请选择所属小区。")
	private int communityId;

	/**
	 * 社区名称.
	 */
	@Column("community_name")
	@Readonly
	private String communityName;

	/**
	 * 社区编码.
	 */
	@Column("community_code")
	@Readonly
	private int communityCode;

	/**
	 * 绑定用户的验证码.
	 */
	@Column("bind_code")
	private String bindCode;

	/**
	 * 绑定的用户名.
	 */
	@Column("bind_user")
	private String bindUser;
	/**
	 * 删除
	 */
	@Column("delete_flag")
	private int deleteFlag;

	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	/**
	 * 备注.
	 */
	@Column
	private String remark;

	/**
	 * 创建时间.
	 */
	@Column("create_date")
	private Date addtime;

	/**
	 * 创建人.
	 */
	@Column("create_user")
	private String createUser;

	/**
	 * 完整的编码.
	 */
	private String fullCode;

	public String getFullCode() {
		return fullCode;
	}

	public void setFullCode(String fullCode) {
		this.fullCode = fullCode;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getRoomNo() {
		return roomNo;
	}

	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}

	public String getRoomCode() {
		return roomCode;
	}

	public void setRoomCode(String roomCode) {
		this.roomCode = roomCode;
	}

	public int getUnitId() {
		return unitId;
	}

	public void setUnitId(int unitId) {
		this.unitId = unitId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getUnitNo() {
		return unitNo;
	}

	public void setUnitNo(String unitNo) {
		this.unitNo = unitNo;
	}

	public String getBuildingNo() {
		return buildingNo;
	}

	public void setBuildingNo(String buildingNo) {
		this.buildingNo = buildingNo;
	}

	public int getCommunityId() {
		return communityId;
	}

	public void setCommunityId(int communityId) {
		this.communityId = communityId;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getBindCode() {
		return bindCode;
	}

	public void setBindCode(String bindCode) {
		this.bindCode = bindCode;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public String getBuildingId() {
		return buildingId;
	}

	public void setBuildingId(String buildingId) {
		this.buildingId = buildingId;
	}

	public String getBuildingCode() {
		return buildingCode;
	}

	public void setBuildingCode(String buildingCode) {
		this.buildingCode = buildingCode;
	}

	public int getCommunityCode() {
		return communityCode;
	}

	public void setCommunityCode(int communityCode) {
		this.communityCode = communityCode;
	}

	public String getBindUser() {
		return bindUser;
	}

	public void setBindUser(String bindUser) {
		this.bindUser = bindUser;
	}

}
